package com.oa.srms.apps.dao.dormitory;

import java.util.List;

import com.oa.srms.apps.entity.dormitory.BedInfoValue;

public interface IBedInfoDao {
	public Integer addBedInfo(BedInfoValue bedInfoValue) throws Exception;

	public void editBedInfo(BedInfoValue bedInfoValue) throws Exception;

	public BedInfoValue queryById(Integer id) throws Exception;
	
	public List<BedInfoValue> queryBedInfo(Integer grade, Integer classNo, String gender, Integer states);

	public List<BedInfoValue> queryBedInfo(String building, String roomNo, Integer grade, Integer classNo, Integer states, Integer rows, Integer pageNo) throws Exception;
	
	public Integer getTotalPageNumber(String building, String roomNo, Integer grade, Integer classNo, Integer states, Integer rows);
	
	public Integer getTotalNumber();
}
